<?php
include 'connection.php';
$email = $_POST['email'];
$password = md5($_POST['password']);
$provinceID = $_POST['provinceID'];
$professionID = $_POST['professionID'];
$companyName = $_POST['companyName'];
$phone = $_POST['phone'];
$address = $_POST['address'];

$result = callSP("addEUser('" . $email . "','" . $password . "','" . $address . "'," . $professionID . "," . $provinceID . ",'" . $phone . "','" . $companyName . "');");

if ($result != null) {
	$arr = array('success' => true, 'message' => "OK");
	echo json_encode($arr);

} else {
	$arr = array('success' => false, 'message' => "Error");
	echo json_encode($arr);
}
?>